using SqlSugar;
using IM.Easy.Core.Audit;

namespace IM.Easy.Entity.Msg
{
    /// <summary>
    /// 邮箱账号表
    /// </summary>
    [SugarTable("EmailAccount")]
    public class EmailAccount : AuditSnowflakeEntity, IActive
    {
        /// <summary>
        /// 关联用户Id
        /// </summary>
        [SugarColumn(ColumnName = "UserId")]
        public long UserId { get; set; }

        /// <summary>
        /// 邮箱账号 例如：user@example.com
        /// </summary>
        [SugarColumn(ColumnName = "Account")]
        public string Account { get; set; }

        /// <summary>
        /// 启用状态
        /// </summary>
        [SugarColumn(ColumnName = "IsActive")]
        public bool IsActive { get; set; }

    }
}
